package com.hxy.dao;

import com.github.pagehelper.PageInfo;
import com.hxy.pojo.Addressbook;
import com.hxy.pojo.model.GetUtilPagerequest;
import com.hxy.pojo.vo.AddressBookVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressbookMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Addressbook record);

    Addressbook selectByPrimaryKey(Integer id);

    List<Addressbook> selectAll();

    int updateByPrimaryKey(Addressbook record);

    List<AddressBookVo> selectPageInfo(GetUtilPagerequest getUtilPagerequest);

    int updateBranchIdById(Integer id);
    int updateBranchByBusinessIdByUpdateOne(@Param("brid") Integer brid, @Param("buid") Integer buid);
}